package com.example.dormitorymanagement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2021-06-05
 */
@ApiModel(value = "访客管理对象")
public class Visit implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(name = "id",value = "数据库的自增主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(name = "visitorname",value = "来访人的名字")
    private String visitorname;

    @ApiModelProperty(name = "visitorphone",value = "来访人的电话")
    private String visitorphone;

    @ApiModelProperty(name = "visitfloor",value = "访问的楼")
    private Integer visitfloor;

    @ApiModelProperty(name = "visitthedormitory",value = "访问的宿舍")
    private Integer visitthedormitory;

    @ApiModelProperty(name = "visittime",value = "访问的时间")
    private LocalDateTime visittime;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public String getVisitorname() {
        return visitorname;
    }

      public void setVisitorname(String visitorname) {
          this.visitorname = visitorname;
      }
    
    public String getVisitorphone() {
        return visitorphone;
    }

      public void setVisitorphone(String visitorphone) {
          this.visitorphone = visitorphone;
      }
    
    public Integer getVisitfloor() {
        return visitfloor;
    }

      public void setVisitfloor(Integer visitfloor) {
          this.visitfloor = visitfloor;
      }
    
    public Integer getVisitthedormitory() {
        return visitthedormitory;
    }

      public void setVisitthedormitory(Integer visitthedormitory) {
          this.visitthedormitory = visitthedormitory;
      }
    
    public LocalDateTime getvisittime() {
        return visittime;
    }

      public void setvisittime(LocalDateTime visittime) {
          this.visittime = visittime;
      }

    @Override
    public String toString() {
        return "Visit{" +
              "id=" + id +
                  ", visitorname=" + visitorname +
                  ", visitorphone=" + visitorphone +
                  ", visitfloor=" + visitfloor +
                  ", visitthedormitory=" + visitthedormitory +
                  ", visittime=" + visittime +
              "}";
    }
}
